<div class="dialog">
    <table>
        <tbody>
        
            <tr class="prop">
                <td valign="top" class="name">
                    <label for="serialNumber"><g:message code="market.serialNumber" default="Serial Number" />:</label>
                </td>
                <td valign="top" class="value ${hasErrors(bean: marketInstance, field: 'serialNumber', 'errors')}">
                    <g:textField name="serialNumber" value="${fieldValue(bean: marketInstance, field: 'serialNumber')}" />
                </td>
        
                <td valign="top" class="name">
                    <label for="name"><g:message code="market.name" default="Name" />:</label>
                </td>
                <td valign="top" class="value ${hasErrors(bean: marketInstance, field: 'name', 'errors')}">
                    <g:textField name="name" maxlength="40" value="${fieldValue(bean: marketInstance, field: 'name')}" />
                </td>
        
                <td valign="top" class="name">
                    <label for="region"><g:message code="market.region" default="Region" />:</label>
                </td>
                <td valign="top" class="value ${hasErrors(bean: marketInstance, field: 'region', 'errors')}">
                    <g:select name="region.id" from="${org.leaf.green.b2b.Region.list()}" optionKey="id" value="${marketInstance?.region?.id}"  />
                </td>
            </tr>
        
            <tr class="prop">
                <td valign="top" class="name">
                    <label for="marketType"><g:message code="market.marketType" default="Market Type" />:</label>
                </td>
                <td valign="top" class="value ${hasErrors(bean: marketInstance, field: 'marketType', 'errors')}">
                    <g:select name="marketType.id" from="${org.leaf.green.b2b.MarketType.list()}" optionKey="id" value="${marketInstance?.marketType?.id}"  />
                </td>
        
                <td valign="top" class="name">
                    <label for="active"><g:message code="market.active" default="Active" />:</label>
                </td>
                <td valign="top" class="value ${hasErrors(bean: marketInstance, field: 'active', 'errors')}">
                    <g:checkBox name="active" value="${marketInstance?.active}" />
                </td>

                <td valign="top" class="name">
                    &nbsp;
                </td>
                <td valign="top" class="value">
                    &nbsp;
                </td>
            </tr>
        
        </tbody>
    </table>
</div>
